fix bug of resource is not a drawable exception