changed sys_close and just removed an if statement in sys_filesize