fixed a bug in the piont mapping