Fixed the errors with unquoted exist function calls.