Fix getSelected() bugs in nudge and align panels