fix dead assignment