Fixed panel rendering bug.