solved panelGrid's bugs