Bug fix for text toggling in previous commit