fixed bug in context_processor