bugfix in initialization