controlPanel bug fix