Replace outdated setpag() with k_setpag()