fix character bug