Fix exception from painting.

refs #2.