fixes syntax error in check for psql