Extended SGA and KZA filters. Fixed deinit function