Fixed bug with registering TimeService