Fix error in select parameters - issue #47