fix map shifting