fixed a bug (two, actually)