fixed nil query param error