added a check before splitting the asset-filename