corrected mistake in inti/deinit phase