A candle tunnels when cooling because the wax didn't melt evenly across the entire surface during its first use. This can be fixed by burning the candle long enough for the melt pool to reach the edges of the container, preventing tunneling.