Fix double variable assignment