Fixed assigning variable