Code works on Mac but not Windows [RESOLVED]