fixed download bug