apply fix for when no elements in parent