Fixed setup phase giving of resources

Fixed setup phase giving of resources