fixed painting of items