minor issues
fixed bug in binary embedding