fix bug and add binding example