bug fix smartparens and motion-mode setting