Fixed missing resourcePath on model generation.