Ensure viewport gets hidden when deactivated, fixes issue 74