Fix bug when ContextManager reload from data base