fixbug: exception while casting byte array to Long