fix staff handling in backend