Encountered strange type error, maybe due to not casting max norm input param as a float.