create_ensure_exists logic bug cleared