Fixed a little error in the `foreach`