Fixes #1 nil assignment