fixed illegal char bug