Fix# crashes on  time log creation from api