I'm not sure if this is the case. What if software category is empty for some reason?