Workaround for double init/free calls