fix binary test crash bug