Cleaning System.err and uncommenting showing errors