* fixed bug in saving binary data