fixed the OK loop for inbox reading