fixed a bug that prevented the adapter from initializing