fixed syncronization problem while moving the layer