Fixed a bug in clearing the context