fixing var dir