Fixed minor bug in charcounter when multiple instances are added