Bugfix: multiply factor with number of rows