fixes syntaxis if-end