small fix for dealing with empty resource tables