Fixed the new code generation code now passes the test