fixed char bug