Fixed a bit of repaining that was going on when it shouldn't.