fixing byte event issue