Fixed Exceptions

Fixed exceptions in the filter class. Still not updating GridView1 yet.