fixed: remaining chars counter not working