The << operator is used to either output messages to a list, or write values to a savefile. As you are doing neither, you should not be using the << operator. Instead, you should be using the = operator.

The << operator is used to either output messages to a list, or write values to a savefile. As you are doing neither, you should not be using the << operator. Instead, you should be using the = operator.

Yeah, I realised that, but it doesn't actually solve the problem. >.<

EDIT: It did solve the problem, but it was caused elsewhere by the same mistake you pointed it.