Fix build error in AdamContext