multiple input bugfix