main panel bug fixed.