fixed bug: platforms were not cleared

cleared arraylist