updated beg2char bug