* fix foreach  error