fix anchor bug