Selectinon rect bugfix