Fix twitter configuration. Fixes #525