fix the snapshot schedule bug