Fix getColor always returning -1.