fixed an issue for command fetch_entities