Fixing result differences between mac and linux