Define $cluster variable before reference

Change-Id: I0960e2ac1ca87097b94d52f9586d7836d51156b5