Fixed a bug with syncing that got introduced with the commit adding the area of interest layer