Fixed runtimewarning when loading component modules