restoring constraint to section query