Fixing states box overlap