fixed bug related to snapping on edge children