fixed Average.merge() can cause NPE when it called right after clean()