Removes wrong directory creation