Remove index out of range for staffs