protect from crash