fix bad model selection query call