Fix select error