fix document role bug