fixed... endif missing