Fix horrible aliasing bug. Not sure why this worked on the mac and only fails on linux.