try to fix crashes