Fix gcc4.8 bug