Bug with number of layers to decode fixed