Bug fix on initiate.php