fixed bug with bshort()