fixes checking for bad words