Fix crash when limited data is available