diff --git a/cmd/geth/js_test.go b/cmd/geth/js_test.go
index 9b6d503abe73f2c4920192eae18b163adb96a0d1..8f985977125110181d3d6108402a99196f5b07c5 100644
--- a/cmd/geth/js_test.go
+++ b/cmd/geth/js_test.go
@@ -45,7 +45,7 @@ type testjethre struct {
 }
 
 func (self *testjethre) UnlockAccount(acc []byte) bool {
-	err := self.ethereum.AccountManager().Unlock(acc, "")
+	err := self.ethereum.AccountManager().Unlock(common.BytesToAddress(acc), "")
 	if err != nil {
 		panic("unable to unlock")
 	}