fixed bug with setting app user