Fix processing of 'shown' flag in chunks