fix lives bug