Fixed the N choose K problem