fix iqurey select