fixed app.js's call to the service crashing bug