aoid crash when no data