bugfix for long select