fixes modifle log_message_diy function