fixed weird anchor breaking bug