Fix params checking.