Fix double-definition-induced max recursion limit problem.