Revert code from LuaScriptInterface::getPosition