bug fixing in AssetService.php