fixed max problem