Rebuild of gem