debug internal server error

You can't use for loop in collections class!