Corrected a bug which prevented to sync the insert operations