Fix timesheet function