fix compilation by porting our anchor setting methods

@confucious