Fixes bug in IV initialization.