Fixed ResourcePtr in Factory