Fixed crash caused by engine