fix socket bugs at communication with app panel