Fixed Fatal Errors in non-laravel examples