Fix bug where timeposition is an empty string.