fix some bugs in phpbb plugin