Small fix to BOTH bounds detection