Fix bugs in bind configuration