Preventing or detecting of nozzle clogging