Fixed bad schema reading in profile.php and include/functions.php