Fixed issue when passing context on open and openExternal methods