bug fix in drawK
(#297)