fix of list blocks rpc, not returning head block