fix a silent bug