fixed small bug in cal runs