fixed issue with binary data support