bugfix for empty resource name