Fix bug in SnapAlign