Fixed a bug not preparing timestamps correctly.