fix bug not removing X when finish upload