Fixed crash on test.php