deal with edge case for max_norm; fixes doctests