Attempt to fix Textual crashes