Set initial value for active.

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