Fixed assigning bug.