Fixed posting to Twitter crash bug. Merged with David's code.