Fix mapLocals