fixed a few more syntax errors that were causing internal service errors