fix bug check