Fixed a typo, and increased portability at a cost of performace.
This change can be turned off with a macro in the config file.