fix loop.php