fixed template issue only on gcc