avoid crashing in some cases