fix sytax on exit statements