crude patch to handle bad stubbing