fix core engine