Question: Collecting names and indexed symbols - a bug?

The command collect( u*(u[t]+1), [u, u[t]], distributed); is not giving me the expected result u+u[t]*u but the error message Error, (in collect/series) invalid expression for series When you replace original non-indexed symbol u by the indexed u[1], you obtain the answer correctly: collect( u[1]*(u[t]+1), [u[1], u[t]], distributed); u[1]+u[t]*u[1] Moreover, when you replace u by v (so you do not mix the same indexed and non-indexed names), the result is correct: collect( v*(u[t]+1), [v, u[t]], distributed); v+u[t]*v Am I missing something or it is a bug in maple?
Please Wait...