Fixed crash when loading project with NaN