Minor fix for allowedRange implementation