fix useless warning