Fixing a layer postprocessing bug.