Remove unneeded k global var
Merge pull request #1241 from darkwing/remove-k-global

Remove unneeded k global var