fixing bug that is a result of performing math on a string

@jdoconnor