bug correction + terminal