Fix for k==1

Signed-off-by: John Cornwell <JohnWCornwellV@gmail.com>