small fix in debug output,
use projectId instead of defaultProjectId if already defined