Fixed bug where sync_all could not be run

Change-Id: I0837db3a50c4627acc8ba8f9d3c2b0e3046de966