fixed filesize check