don't trigger save twice in update layers, set correctly the bbox.
Merge pull request #1721 from simod/issue-1719

don't trigger save twice in update layers, set correctly the bbox.