Fixed terminal debugging