fix apc compat