wrong extend in horizontal form template