fixed beginning of input bug in sanitizer