fix ma_log