Fixed error with filesize in file