fixed small problem with template compiler