Fix edit SQL error when no uploading profile.