Fix BufferedLayer