Fixing some funky terminal issues