Fixed bug with application on non-root path