fix a bad bug