fixing a bad loop