fixes flush and destroy bug in parameter and policy types