Fix bug with undefined variable.
Remove unnecessary file.