fixed params parsing issue when there are no params