fixed an issue with properly identifying the active instance