Fixed the type error, for component fetching.
got fmt the code.