Corrected typo

Corrected typo. Added in braces and yoda code.