Avoid download multiple times

Added code after if($Download) to avoid download of same file multiple times.