fix store bug in cal loop
fix store bug in cal loop