Fixed MalisisCore refactoring