Bug fix: loop.php