Fix scoping on genColor