fix verify code