Fix assignment of unused var