Fixes end of file error