Change INVALID_STATE_ERR to INVALID_ACCESS_ERR.