Fix char bug