fix condition in iteration getReply