Fix app by domain

@czue @dannyroberts