Set initial value for active.

I seems 'active' should be set during definition as it is used in handler which is set up before possible assignments.