Fixed problem with mg_printf_data()