Fixed a bug in new.php