Fixes syntax error in phase comparison