fixed vendorbuy bug, removed extra debug prints