I had this issue before after a engine change, Check the engine bay loom and look for a wire that's been pulled out of the back of the plug a bit ie check all the connectors on the engine loom, mine turned out to be just above the gearbox where it links most of the engine sensors to the main loom.
didn't find out what the wire controlled but had the same issue as you and it was a se engine.