[Felix] Fixed a bug in the upload roles script.