Fixes regex parsing empty node