Fix Traceback

Ticket: #4833