fix np.flipud call
fix -220 MAX_TUNABLE