Fix crash when doing add from list window