fix second not updating bug