fix for set and add just for app resource

set previous fix for set and add just for app resource