Fixed bug that allowed downloading of non-existent file