fix binding and override bugs