Fix logic error, now works on linux.