fixing anchor bug