IME: handle "no slots" error + some smaller fixes