enabled logging of possible runtime error occurrence, but the error-occurrence is fixed with by implementation of condition of avoidance