Fixed gcc error caused by missing typename