fix bug in view path