fix new app creation case.
found by nate aune.