When using this program over ssh, you will recieve a segmentation fault. This commit resolves that issue.