Fixed problems with application routing.