fixed up error on some gcc versions