Resource distribution set wrong type to 0 when none were available