fixed a bug it may cause downloading occur in current page