NPE fix maximize strategy