getBinary fix