fixed bug when feature doesn't have any elements