log puzzle fix