Hi Top,

Did you have:
U = Dir(P)
somewhere before the
U = Dir()
?