Fixed error when user types unrecognized string.