fix snap to element refresh