fixed #1 bug in getQueryParam method