Fixed error where we passed in an int for .getText