bug fixes for role provider