setStateAs
fixed doc