Workaround to xpm and sql-mode