Bug fix: set defaults in component factory