Fixed bug in updateKStore where it was returning Some(Nil) instead of None.