Fix clientdata bug in gui plugin