fix automatic model manager monkey patch thing