fixed endif notation