fix after crash bug