fix a5 bug (ins was set to None when it cannot be estiamted)