Remove colon in endfunction, fixed #32