Fixed weird mac error

Somehow a bug was only happening on Mac.  I went on mac and fixed the
bug.