Improved sfety of inner join for timesheet assignment.