add select and resovle select bug