fixed extra character bug