similar fix for text mode