Kanso: Small bug fix

Bug fix for a small crash on windows 10.