fixed a bug with cmd points