Fixed an engine breaking bug