fix minor bugs in Sfp::Resource#download