fix a bug in bind(...)