Fix app by domain

@czue @dannyroberts 
done