Fix #each in text mode