fix the bug to click twice when upload files