Engine object added
This commit fixes the incorrect event handling