fixed global variable in app.datamodel