checking for set state and fixed a typo