fixed some binding and lifecycle events bugs