MQ: fixed the paint mechanism.