fixed currentMaxes nullpointer bug