Add sync block before hidden layer access.