fix engine erratic behaviour