Fix problem of context switching on mixed context configurations
Fix problem of context switching on mixed context configurations

vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks