Fixes the check for breaking the structure