Corrected the staff data retrieve code