Fixing terminal corruption bug in case of wrong interface provided.