Fix problem with select