fix bug in agg backend snapping