fix creation of components from basic types