Remove un needed code.
Remove "undefined variable" message.
Minor fixes.
Change the equal sign in the filter criteria.