fixed a puzzle bug