Fixed the encoder bug which leads to incorrect BVd signaling. The incorrect BVd triggers exception on valid BV checking.