fix binding bugs