Correct a bug on Batinfo __init__ function