Fixing errors in text and dict