Fixed calculating segments map of objects