fixed extra characters bug