added workaround for lxml bug