Fix the error message when a module instance cycle is encountered.