Fix bug: upload img error.