sync minor logic bug fixed