fix GetEntity API method returning a map rather than a list