Fixed bugs in timesheets api.