added check location name for beforeSave summer plan
fixed a bug in cloud code