Fixed duplicate role issue when role already exists.