fix bug with negative hp bar