Fixed bug in checking the validity of the bytes_b paramter