Fix anchor bug