[MPFE-671] Resolved issue with terminal size