The reason will be that actions won't (unfortunately) executed in compelling sequentially order. Therefore you should to try to avoid such action-chains. Sometimes it's helpful to add some dummy-action like calculation anything and write this in a dummy-variable or to reverse your logic like select you field, lock it, clear all and unlock it again - but it could be a quite annoing trial & error.