fix check role bug