Fixed bugs resulting from panel constructor change.