fix ocassional crash