Fixed error in engine index update