Fixed a bug with download the fix file

Oops. Forgot the "end"s. :P