Fix some bugs with etherpad