fix check condition on role