A degeneration of stable morphisms and relative stable morphisms