Fixes parsing of button characters