Fixed bug in context.