bug on wget download function