Fix engine init.