insurance logic bugfix