puzzle bug fix