Fixed infinite loop when increasing platform count.