fixed a bug when marking an object