fix bug when twitter is not installed