Fixed error in allocateFlow action. Mapping between switchId and resourceId is never set in the model.