fix bug in paintclouds cm