Test and fix bug in component skipping.
Fix warning