fixed problem when invalid parameter was passed as URL parameter