fix resource definition issue