Fixed bugs on anchor