Removing useless printstacktrace