Fixed Logic.php Error Notice