fix works.php