fix dead assigment