fixed wrongly typed select