Fixed crash on windows deactivate
Enable debugging