fixed a bunch of silly invalid "if" statements