fixed undefined txt