Oops, c&p error. Should be endif.