Fixed a space problem causing incorrect results.