fixes #748 - fix initialization sequence