Fix unusual error with regards to MinePainter.