Fix bug that caused project creation to fail due to improperly-structured control structure.