Fixed bug in the logic of the sync, if timestamp > local_timestamp save file otherwise delete from server