fix for double init