Fix typo
Run onInit/onDestroy correctly (#3)