The condition was at the wrong indent level, produced incorrect html, fixed