fix: only save firstBar when firstBar exists.