Fixed calculation bug in stk:pagination.create-menu