fixed a bug about saving workout