implemented an (ugly) fix for the filter problem that was introduced when inner joining the 'orders' table