template bug, setLocalStaffSize