Fixed bug that produced masses of painted items.