Fix downloads page function