fixed issues 4. removed race condition where tags associated to time entries could be lost