fix for the case when layer filters are empty