fix bug of base type and modify cegui sources