fixes crash when user has no sensors of all types and when res has no room