On Conley's fundamental theorem of dynamical systems