fix bug dictionary