Some motion (pdf) fixes for 1.4

fixed #790 and #742