Fixed foreach error on lin 153