Fixed bug where error thrown if no role supplied