fixed potentially wrong panel attribute