fixed Nulldivision Warning