Fix adapter error