Fixed localToGlobal and localToLocal.