fix bug warning