Fixed another bug in the Panels class.