Fix error with implied global scope of username