Bug when adding cast, incorrect variable name again.