Corrects `maximum` if the result is negative

Closes #322