fixed calculation error for the 4-directional spread