Undefined variable '$k'
Merge pull request #277 from tmihalik/patch-1

Undefined variable '$k'