AU Plug-in AudioParameterBool parameters aren’t recalling their state until the GUI becomes active/visible

When I reopen a saved project in Logic with my plugin, the boolean audio parameters are not recalled until the user clicks on the plugin. Instead, the default AudioParameterBool parameters of are loaded. However, AudioParameterFloat parameters are properly recalled. This problem doesn’t happen in Reaper.

Any ideas?