fixed issue with motion plots not being generated