Remove extra "<% end %>" tag