Fix sync dates bugs