fix bug stated in http://tracker.phpbb.com/browse/PHPBB3-11723