Fixed a bug where the before text wasn't set properly