fixed deleteion of history dir