remote.php fix