fixed typo while assigning value to array