fixed a bad bug