fix crash in wbb3 format
fix crash in pdf format