Fixed the lives bug