fixed dict error