Fixed a bug with how S goes to expr