fixed decoding bug in driver