Only set maxId if non-zero to avoid odd 'missing url' error