fixes bug where attributes could not be obtained because of key data type