avoid crashing