fix bug with engines