Steps Goal

Yesterday my step goal was 9,530 and I had 9,793 steps. This morning my goal was 9,590, which made sense. A few minutes later my goal changed to 5,990. That does not make sense. What's up with the auto step goal calculation?