bugfix on setinit