fix height issues with templates