Fixed char dependacy
Fixed rules bug and dep.
Sol