Fix bug which was causing an infinite loop in Planetfall.