fixed problem with resources not loading