Fix viewsDir for reuse