fixed nil issue in sdk query strings