Fixed add.php problems