Fix MAX declaration (#41)