fixes #30 by checking if max_limits is false, not just -1