fix sync error

wrong structure was used