fixed the some minor bugs with removing stop words