Fixed crash when launched with file

Version upped to 1.40