fixed issue that can cause the primary backend to deinitialize