fix hp bug