GH-5 Fixed gate ID's
GH-5 Bugfix: get portId from the correct node