fixed snippets "else if" and "return"