fix dependency tracking for generated models