fixed select (fixes #90)