fixed bugs of dict api(dict.php)