Fixed two small bugs in timeditem-serializer