Fixed error in base __init__ on mac