don't let explicit max of zero fall through to derived max; fixes #178