Fixed directory access stuff on views