fix error and new panel