fixed case-sensitive bugs in retrieve.php