Fixed return variable for maxwin.

Fixed the bug as you said.