fixed invalid context creation call