curChar broken?