Fixed pdf not available when getting single resource