Fixed crash when changing file size before selecting file