Fix Resources constructor