Fix issue when displaying resource in popup