Fixed crash on building in console