fix stability issue of MEGA Logger