remove unused global variable CurrentProcess