Fixed seg fault when program is being runned without arguments