fix sampling of tau