fix bug forEach