Fixing TF buffer constructor