Fixed a select bug