fixing a bug in the 3 compositing