fix: binary data event function