Fixed a bug where chat would crash when the controller was already at the top of the stack