avoid setting zero moment if no shapes