fix role type checker