charref errors