error when adding role, trying to add 0 index of an object.