Fixed gcc bug