Fix for set_byte_priority being out of bounds