fix combine_pieces error