bugfix for select in script without results