Corrected a nesting error