fix bug with empty request parameters