[Title] Fixed the context creation code to eliminate prevent issue