I just fell into the same trap two years after this problem was first reported. It would be nice if the docs were updated so everybody didn't have to get the error, search for it on google, and read a bunch of threads to find the explanation of this wacky function.