fix fails on macs