fix URL when bucket is empty

close #27