fixing socket broadcast issue and admin reset (parseInt)