Fixed white spaces computation bug