master - 114 - fix GSLayerEncoder21

here is the fix.