Remove doubled variable write