We report our transmission electron microscopy observations of erratic dislocation behavior within funnel-like defects in the top of AlN templates filled with AlGaN from an overlying epitaxial layer. This dislocation behavior is observed in material where phase separation is also observed. Several bare AlN templates were examined to determine the formation mechanism of the funnels. Our results suggest that they are formed prior to epitaxial layer deposition due to the ...