fixed a bug about downloading in iframe