fix the parameter passing to app