Fixed errant if/else bracketing.