Fixed the k + 1 problem