fixes bug with latest file using all files; not versions files