Fixed bugs with character concating