Fix 0 messages condition