gp_panel works but buggy