fix on empty resource