[Multiple Gap] Fixed problem with setting state