fix role check