Fixing a bug for coor manipulation.