Bugfix contextAttributes passing in context restoring
0.4.1