fixed bug returning binary