fix for max run