fixed verifybuffer and verifystring