Workaround for ace editor losing typing.