fixing param error