fixed params bugs