1. Fix main engine