bugfix for init