remove empty parent blocks