fix problem of null in puzzle