Fix errors in adapters