fixed params bug