Fixed a bug in the context module
Changed hash implementation of context