Fixed while decoding structure

Fixed while decoding structure