fix panel id retrieval