Fix app by domain

@czue @dannyroberts 
I do think you can make that change.