Do't pass the result of file.rewind to 500px