fix bug in spend time

* fix bug when edit spend time entry