fixed issue with init()