fix: fixed bug when staf is exactly a multiple of 21