Updated GateIn3 script to work correctly (#11314)

Change-Id: Ic8a86bc2dd6f0b791047ebb4c4bc81d4a9e7b9eb