fix hammer bug