The function fileSize didn't return the correct size