fixed character bug