fixing bug in default viewpath