fix generation null puzzle bug