fixed a code parsing error that only showed up on mac