Fix wrong initialization sequence

- closes #49