Fix for terminal crash.