bug correction in kapa