Applied a patch to make it conform to whatever standards

Thanks to wintermute for this patch.