fixed typo

and print ts for debugging