 John VIII, aided by Constantine, successfully repulsed this attack and Demetrios was briefly imprisoned as punishment.After John VIII's death in June 1448, the candidates for the throne were brothers Constantine, Demetrios and Thomas.To avoid infighting, their mother Helena Dragaš decided that Constantine was to be the next emperor.