fixed error in some gcc versions