Enable debugging
Fixed crash on windows deactivate