bugfix when creating a select row