added resolve to protect profile state.