Fix double layer outputter bug introduced in 25512be by me.