Fix check for role