snap_in: fixed small bug with bracket mismatch