Fixed bug of setting anchor point