Fixed dirty-lifecycle event called mutliple times (issue #45)