fix adding context when a process is already defined