Fix runtime calc