Fix a bug diagnosed by reading Ippo's logs, some formatting issues

Thanks @Ippo343!