fixed index-insert.php