fix memory adapter
use correct lookup