fixed checking for constistence param