inputFormatter bug fix